<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
  </head>
  
  <body><%-- 
  <a href="${pageContext.request.contextPath}/test.action">test</a>
  --%>
  
     <s:form action="/reg">
     <s:textfield name="user.name" label="用户名"></s:textfield>
     <s:submit value="递交"></s:submit>
     </s:form>
  
     <s:a action="utilAction">toList</s:a>
  </body>
</html>
